| Visual Basic (Declaration) | |
|---|---|
<ExtensionAttribute()> Public Overloads Shared Function Select(Of TSource)( _ ByVal source As IEntityQuery(Of TSource), _ ByVal selector As IProjectionSelector _ ) As ITypedEntityQuery  | |
| Visual Basic (Usage) |  Copy Code | 
|---|---|
Dim source As IEntityQuery(Of TSource) Dim selector As IProjectionSelector Dim value As ITypedEntityQuery value = EntityQueryExtensions.Select(Of TSource)(source, selector)  | |
| C# | |
|---|---|
[ExtensionAttribute()] public static ITypedEntityQuery Select<TSource>( IEntityQuery<TSource> source, IProjectionSelector selector )  | |
| C++/CLI | |
|---|---|
[ExtensionAttribute()] public: static ITypedEntityQuery^ Selectgeneric<typename TSource> ( IEntityQuery<TSource^>^ source, IProjectionSelector^ selector )  | |
Parameters
- source
 - selector
 
Type Parameters
- TSource
 
| C# |  Copy Code | 
|---|---|
var mgr = new DomainModelEntityManager(); var rootQuery = mgr.Customers; var ps1 = new ProjectionSelector("CompanyName"); var ps2 = new ProjectionSelector("ContactName"); var pps = ps1.Combine(ps2); var query = rootQuery.Select(pps); var results = query.Execute();  | |
Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family